#include <my_header.h>

int main(int argc, char *argv[])
{
    int num = atoi(argv[1]);
    int fd = open("BigFile",O_CREAT|O_WRONLY|O_TRUNC,0666);
    long filesize = (long)num*1024*1024*1024;
    ftruncate(fd,filesize);
    long processed = 0;
    char buf[8192] = {0};
    for(int i=0;i<8192;i++)
    {
        buf[i]=(char)(i%93+33);
    }
    while(processed<filesize)
    {
        write(fd,buf,8192);
        processed+=8192;
    }
    
    return 0;
}
